<!DOCTYPE html>
<!-- saved from url=(0035)http://jingyan.idoubi.net/1092.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width , initial-scale=1.0 , user-scalable=0 , minimum-scale=1.0 , maximum-scale=1.0">

<title>Unity3D 中Start()和Awake()方法有什么区别 | 逗分享开发经验</title>
<link rel="shortcut icon" href="http://jingyan.idoubi.net/favicon.ico">
<link rel="pingback" href="http://jingyan.idoubi.net/xmlrpc.php">
<link rel="stylesheet" href="https://libs.bsdev.cn/highlight.js/9.8.0/styles/github.css" target="_blank">
<script src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/hm.js.下载"></script><script src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/hm.js.下载"></script><script src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(6).txt"></script><script src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(7).txt"></script><script src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(8).txt" id="google_shimpl"></script><script src="https://libs.bsdev.cn/highlight.js/9.8.0/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script data-ad-client="ca-pub-2936974149975785" async="" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(9).txt" data-checked-head="true"></script>
<meta name="robots" content="max-image-preview:large">
<link rel="alternate" type="application/rss+xml" title="逗分享开发经验 » Feed" href="http://jingyan.idoubi.net/feed">
<link rel="alternate" type="application/rss+xml" title="逗分享开发经验 » 评论Feed" href="http://jingyan.idoubi.net/comments/feed">
<link rel="stylesheet" id="enlighterjs-css" href="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/enlighterjs.min.css" type="text/css" media="all">
<script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/jquery.min.js.下载" id="jquery-core-js"></script><meta http-equiv="origin-trial" content="AzoawhTRDevLR66Y6MROu167EDncFPBvcKOaQispTo9ouEt5LvcBjnRFqiAByRT+2cDHG1Yj4dXwpLeIhc98/gIAAACFeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A6+nc62kbJgC46ypOwRsNW6RkDn2x7tgRh0wp7jb3DtFF7oEhu1hhm4rdZHZ6zXvnKZLlYcBlQUImC4d3kKihAcAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A/9La288e7MDEU2ifusFnMg1C2Ij6uoa/Z/ylwJIXSsWfK37oESIPbxbt4IU86OGqDEPnNVruUiMjfKo65H/CQwAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ==">
<script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/jquery-migrate.min.js.下载" id="jquery-migrate-js"></script>
<link rel="canonical" href="http://jingyan.idoubi.net/1092.html">
<link rel="alternate" type="application/json+oembed" href="http://jingyan.idoubi.net/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fjingyan.idoubi.net%2F1092.html">
<link rel="alternate" type="text/xml+oembed" href="http://jingyan.idoubi.net/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fjingyan.idoubi.net%2F1092.html&amp;format=xml">
<script type="text/javascript">(function(){mod_txt = '#'; adminBar = "" || 0})();</script>
<script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/frontopen.js.下载"></script>
<script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/lightbox-2.6.min.js.下载"></script>
<link href="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/lightbox.css" rel="stylesheet" type="text/css">

<link rel="stylesheet" type="text/css" media="all" href="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/style.css">
<link rel="stylesheet" type="text/css" media="all" href="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/mobile.css">
<style type="text/css">@media screen and (min-width:1366px){.c-con{height:140px;}}
</style>

<!--[if lt IE 9]><script src="http://jingyan.idoubi.net/wp-content/themes/frontopen/html5.js"></script><![endif]-->
<link rel="stylesheet" href="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/font-awesome.min.css">
<!--[if IE 7]>
<link rel="stylesheet" href="http://jingyan.idoubi.net/wp-content/themes/frontopen/css/font-awesome-ie7.min.css?ver=1.5.04.15">
<![endif]-->
<link rel="preload" href="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(10).txt" as="script"><script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(10).txt"></script><meta http-equiv="origin-trial" content="AzoawhTRDevLR66Y6MROu167EDncFPBvcKOaQispTo9ouEt5LvcBjnRFqiAByRT+2cDHG1Yj4dXwpLeIhc98/gIAAACFeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A6+nc62kbJgC46ypOwRsNW6RkDn2x7tgRh0wp7jb3DtFF7oEhu1hhm4rdZHZ6zXvnKZLlYcBlQUImC4d3kKihAcAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A/9La288e7MDEU2ifusFnMg1C2Ij6uoa/Z/ylwJIXSsWfK37oESIPbxbt4IU86OGqDEPnNVruUiMjfKo65H/CQwAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="AzoawhTRDevLR66Y6MROu167EDncFPBvcKOaQispTo9ouEt5LvcBjnRFqiAByRT+2cDHG1Yj4dXwpLeIhc98/gIAAACFeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A6+nc62kbJgC46ypOwRsNW6RkDn2x7tgRh0wp7jb3DtFF7oEhu1hhm4rdZHZ6zXvnKZLlYcBlQUImC4d3kKihAcAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A/9La288e7MDEU2ifusFnMg1C2Ij6uoa/Z/ylwJIXSsWfK37oESIPbxbt4IU86OGqDEPnNVruUiMjfKo65H/CQwAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="AzoawhTRDevLR66Y6MROu167EDncFPBvcKOaQispTo9ouEt5LvcBjnRFqiAByRT+2cDHG1Yj4dXwpLeIhc98/gIAAACFeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A6+nc62kbJgC46ypOwRsNW6RkDn2x7tgRh0wp7jb3DtFF7oEhu1hhm4rdZHZ6zXvnKZLlYcBlQUImC4d3kKihAcAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A/9La288e7MDEU2ifusFnMg1C2Ij6uoa/Z/ylwJIXSsWfK37oESIPbxbt4IU86OGqDEPnNVruUiMjfKo65H/CQwAAACLeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><link rel="preload" href="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(10).txt" as="script"><script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(10).txt"></script><link rel="preload" href="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(10).txt" as="script"><script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(10).txt"></script></head><iframe id="google_esf" name="google_esf" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/zrt_lookup.html" style="display: none;"></iframe>

<body class="post-template-default single single-post postid-1092 single-format-standard" aria-hidden="false" style="padding: 0px 0px 120px;">
<div class="loading" style="width: 100%; overflow: hidden; display: none;"></div>
<div class="web_bod" style="height: auto !important;">
<header class="header marauto">
    <span class="logo">
        <a href="http://jingyan.idoubi.net/" title="逗分享开发经验" rel="home"><b class="bclass">逗分享开发经验</b></a>
        <i>分享优质开发经验，让学习和工作更轻松</i>
    </span>
    <form role="search" method="get" id="searchform" action="http://jingyan.idoubi.net/">
      <span class="search">
        <input name="s" id="s" type="text" class="input" value="" onclick="this.value = &#39;&#39;;" style="color:#999" onkeypress="javascript:if(event.keyCode == 13){query(this.value);}" x-webkit-speech="">
        <button id="searchsubmit" class="btn">SEARCH</button>
      </span>
    </form>
    <div class="cls"></div>
</header>
<div class="nav marauto" style="height: auto !important;">
    <div class="tig">
          <div class="gonggao">
        <ul id="g_box">
                    </ul>
      </div>
    </div>
<div class="navlist">
<script async="" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(11).txt"></script>
            <ins class="adsbygoogle" style="display: block; height: 280px;" data-ad-client="ca-pub-2936974149975785" data-ad-slot="6278171963" data-ad-format="auto" data-full-width-responsive="true" data-adsbygoogle-status="done" data-ad-status="filled"><ins id="aswift_1_expand" tabindex="0" title="Advertisement" aria-label="Advertisement" style="border: none; height: 280px; width: 1200px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: inline-table;"><ins id="aswift_1_anchor" style="border: none; height: 280px; width: 1200px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: block; overflow: visible;"><iframe id="aswift_1" name="aswift_1" style="left:0;position:absolute;top:0;border:0;width:1200px;height:280px;" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="1200" height="280" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/ads.html" data-google-container-id="a!2" data-google-query-id="CN_Gn6nugfgCFVaC6QUdZeUJrA" data-load-complete="true"></iframe></ins></ins></ins>
            <script>
                (adsbygoogle = window.adsbygoogle || []).push({});
            </script><div class="cls"></div>
</div>
</div>


<nav class="navcon marauto" style="left: 57.0938px; position: fixed; top: 0px; z-index: 15; margin-top: 0px; overflow: visible; width: 1788.81px;">
  <div id="mobile_nav_btn">网站导航</div>
  <div class="menu-header"><ul id="menu-%e4%b8%bb%e5%af%bc%e8%88%aa%e6%a0%8f%e8%8f%9c%e5%8d%95" class="menu"><li id="menu-item-249" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-249"><a href="http://jingyan.idoubi.net/">首页</a></li>
<li id="menu-item-91" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-91"><a href="http://jingyan.idoubi.net/category/language">编程语言</a>
<ul class="sub-menu">
	<li id="menu-item-468" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-468"><a href="http://jingyan.idoubi.net/category/language/csharp">C#</a></li>
	<li id="menu-item-467" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-467"><a href="http://jingyan.idoubi.net/category/language/cplusplus">C/C++</a></li>
	<li id="menu-item-470" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-470"><a href="http://jingyan.idoubi.net/category/language/php">PHP</a></li>
	<li id="menu-item-471" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-471"><a href="http://jingyan.idoubi.net/category/language/python">Python</a></li>
	<li id="menu-item-469" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-469"><a href="http://jingyan.idoubi.net/category/language/html">Html/CSS</a></li>
</ul>
</li>
<li id="menu-item-88" class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor menu-item-has-children menu-item-88"><a href="http://jingyan.idoubi.net/category/game">手游开发</a>
<ul class="sub-menu">
	<li id="menu-item-461" class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-461"><a href="http://jingyan.idoubi.net/category/game/unity3d">Unity3D</a></li>
	<li id="menu-item-462" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-462"><a href="http://jingyan.idoubi.net/category/game/unreal">Unreal</a></li>
	<li id="menu-item-460" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-460"><a href="http://jingyan.idoubi.net/category/game/cocos2d-x">Cocos2d-x</a></li>
</ul>
</li>
<li id="menu-item-90" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-90"><a href="http://jingyan.idoubi.net/category/app">移动开发</a>
<ul class="sub-menu">
	<li id="menu-item-465" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-465"><a href="http://jingyan.idoubi.net/category/app/android">Android</a></li>
	<li id="menu-item-466" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-466"><a href="http://jingyan.idoubi.net/category/app/ios">iOS</a></li>
</ul>
</li>
<li id="menu-item-87" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-87"><a href="http://jingyan.idoubi.net/category/web">网站开发</a>
<ul class="sub-menu">
	<li id="menu-item-459" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-459"><a href="http://jingyan.idoubi.net/category/web/wordpress">WordPress</a></li>
	<li id="menu-item-472" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-472"><a href="http://jingyan.idoubi.net/category/web/discuz">Discuz</a></li>
</ul>
</li>
<li id="menu-item-89" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-89"><a href="http://jingyan.idoubi.net/category/database">数据库开发</a>
<ul class="sub-menu">
	<li id="menu-item-463" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-463"><a href="http://jingyan.idoubi.net/category/database/mysql">MySQL</a></li>
	<li id="menu-item-464" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-464"><a href="http://jingyan.idoubi.net/category/database/sqlserver">SQL Server</a></li>
</ul>
</li>
<li id="menu-item-92" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-92"><a href="http://jingyan.idoubi.net/category/server">服务端开发</a></li>
<li id="menu-item-250" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-250"><a href="http://unity.idoubi.net/">游戏源码</a></li>
<li id="menu-item-4782" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-4782"><a href="http://share.idoubi.net/">全球干货分享</a></li>
<li id="menu-item-4783" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-4783"><a href="http://book.idoubi.net/">电子书</a></li>
</ul></div>  
  </nav><div id="navbei" style="height:55px;"></div>   
  <section class="conter marauto"><script type="text/javascript">loading('33%',1000)</script>
  <div id="container">
      <div id="content" role="main" style="width:96%">
      <div class="mbx"><i class="icon-home icon-large" style="font-size:14px;"></i>
<a href="http://jingyan.idoubi.net/" class="gray">首页</a>  &gt;  <a href="http://jingyan.idoubi.net/category/game">手游开发</a>  &gt;  <a href="http://jingyan.idoubi.net/category/game/unity3d">Unity3D</a>  &gt;  Unity3D 中Start()和Awake()方法有什么区别</div>

				<div id="post-1092" class="post-1092 post type-post status-publish format-standard hentry category-unity3d">
                <div class="c-top2" id="post-55">
                <div class="datetime">2019<br>03-12</div>
					<header class="tit"><h1 class="entry-title">Unity3D 中Start()和Awake()方法有什么区别</h1>
					<aside class="entry-meta iititle2">
                        <span><i class="icon-user icon-large"></i> <a href="http://jingyan.idoubi.net/author/xiumang" title="文章作者 搬运工" rel="author">搬运工</a></span><span><i class="icon-folder-open icon-large"></i> <a href="http://jingyan.idoubi.net/category/game/unity3d" rel="category tag">Unity3D</a></span><span><i class="icon-eye-open icon-large"></i> 围观<i id="number">196</i><script type="text/javascript">jQuery(function($){$.get("http://jingyan.idoubi.net/fo_ajax?ajax=getPostViews&postID=1092",function(data){if(data.length < 10)$('#number').text(data)});})</script>次</span><span><i class="icon-comment-alt icon-large"></i> <a href="http://jingyan.idoubi.net/1092.html#respond">留下评论</a></span><span><i class="icon-pencil icon-large"></i> 编辑日期：<time>2019-03-18</time></span><span><i class="icon-zoom-in icon-large"></i> 字体：<a href="javascript:;" onclick="checkFontSize(18)">大</a> <a href="javascript:;" onclick="checkFontSize(16)">中</a> <a href="javascript:;" onclick="checkFontSize(14)">小</a></span>					</aside>
                    </header>
                    <div class="cls"></div>
		    </div>
                    <!-- .entry-meta -->

					<article class="entry-content">
                    
						<p>Start和Awake方法的区别和使用
</p>
<p>1. Awake
</p>
<p>Awake is called when the script instance is being loaded.
</p>
<p>Awake方法在脚本实例正在被加载的时候调用
</p>
<p>Awake方法在脚本的生命周期中只调用一次
</p>
<p>Awake方法会在所有object都初始化后调用，所以不用担心object还没有加载出来，GameObject的find方法可以找到引用
</p>
<p>Awake方法的调用顺序在object之间时随机的
</p>
<p>当所有对象的Awake方法都调用完成后，才会执行第一个Start方法
</p>
<p>Awake方法就像构造函数一样
</p>
<p>Awake方法不论脚本是否启用，都会调用
</p>
<p>2. Start
</p>
<p>Start is called on the frame when a script is enabled just before any of the Update methods is called the first time.
</p>
<p>脚本被启用的时候，Start方法被调用，且是在Update方法之前被调用
</p>
<p>
&nbsp;</p>
<p>Start方法在脚本生命周期中只调用一次
</p>
<p>Start方法在脚本启用时才会调用，也就是启用的第一次才调用
</p>
<p>3. OnEnable
</p>
<p>This function is called when the object becomes enabled and active.
</p>
<p>这个方法在对象被激活和启用时调用
</p>
<p>
&nbsp;</p>
<p>OnEnable方法时在Awake之后Start之前调用，和他们不同的是，此方法可以调用多次。
</p>
<p>4. Awake和Start方法的比较
</p>
<p>大部分情况下，两个方法都可以用来初始化，但是当A的初始化要用到B的初始化时，我们可以把B的初始化放在Awake中，然后A在Start中使用B就没有问题了。
</p>
<p>这是因为所有的Start方法的执行顺序都是随机的，假如A在Start中初始化了某个值，而B要获取这个值，而我们不知道哪个Start会先执行，可能B先执行，所以这样可能就报错了。
</p>
<p>如果我们必须规定脚本的执行顺寻，我们可以按照下图进行设定。</p>
 
						
						                    <div class="ad_2">
						<script async="" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(9).txt"></script>
<ins class="adsbygoogle" style="display: block; text-align: center; height: 0px;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-2936974149975785" data-ad-slot="5583599010" data-adsbygoogle-status="done" data-ad-status="unfilled"><ins id="aswift_2_expand" tabindex="0" title="Advertisement" aria-label="Advertisement" style="border: none; height: 0px; width: 1200px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: inline-table;"><ins id="aswift_2_anchor" style="border: none; height: 0px; width: 1200px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: block; overflow: hidden; opacity: 0;"><iframe id="aswift_2" name="aswift_2" style="left: 0px; position: absolute; top: 0px; border: 0px; width: 1200px; height: 0px;" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="1200" height="0" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/ads(1).html" data-google-container-id="a!3" data-load-complete="true" data-google-query-id="CN3J68XvgfgCFT6H6QUdk8oE5g"></iframe></ins></ins></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>                    </div>
                 										                        <div class="loc_link"><ul><li>本文固定链接: <a href="http://jingyan.idoubi.net/1092.html" rel="bookmark" title="Unity3D 中Start()和Awake()方法有什么区别">http://jingyan.idoubi.net/1092.html</a></li>
                        <li>转载请注明: <a href="http://jingyan.idoubi.net/author/xiumang" title="文章作者 搬运工" rel="author">搬运工</a> <time>2019年03月12日 </time>于 <a href="http://jingyan.idoubi.net/" title="访问逗分享开发经验">逗分享开发经验</a> 发表</li></ul>
                        </div>
                        						                        <div class="author_info">
                        	<div class="au_top_bar"><div class="edit_date">最后编辑：<time>2019-03-18</time></div><b>作者：搬运工</b></div>
                            <div class="avatar"><img alt="" src="http://cn.gravatar.com/avatar/268c484bbdf4e3afc68e23b51d3ac5a7?s=96&amp;d=mm&amp;r=g" srcset="http://cn.gravatar.com/avatar/268c484bbdf4e3afc68e23b51d3ac5a7?s=192&amp;d=mm&amp;r=g 2x" class="avatar avatar-96 photo" height="96" width="96" loading="lazy"></div>
                            <div class="type_out"><span class="ttxx">这个作者貌似有点懒，什么都没有留下。</span><div class="au_links"><a href="http://jingyan.idoubi.net/?author=1" class="c1"><i class="icon-home"></i> 站内专栏</a></div></div>
                        <div class="cls"></div>
                        </div>
                        					</article>
                    
                    <!-- .entry-content -->

					<!-- .entry-utility -->
				</div><!-- #post-## -->
<div class="c-bot">
            <div class="cls"></div>
    </div>
    <br>
				<div id="nav-below" class="navigation">
					<div class="nav-previous"><a href="http://jingyan.idoubi.net/1186.html" rel="next"><span class="meta-nav"><i class="icon-arrow-left"></i></span> The imported type `System.Xml.Linq.XElement' is defined multiple times </a></div>
					<div class="nav-next"><a href="http://jingyan.idoubi.net/1090.html" rel="prev">WordPress 4.3及以上版本禁用修订版本及自动保存  <i class="icon-arrow-right"></i></a></div>
				</div><!-- #nav-below -->
<div class="cls"></div>
				
                <div class="relatedposts">
<h3 class="widget-title"><i class="icon-warning-sign"></i> 您可能还会对这些文章感兴趣！</h3>
<ul>
		<li><a href="http://jingyan.idoubi.net/4216.html" rel="bookmark" title="详细阅读 Unity3d 之 Audio Mixer">Unity3d 之 Audio Mixer</a></li>
		<li><a href="http://jingyan.idoubi.net/4711.html" rel="bookmark" title="详细阅读 Unity角色控制器CharacterController">Unity角色控制器CharacterController</a></li>
		<li><a href="http://jingyan.idoubi.net/2183.html" rel="bookmark" title="详细阅读 Unity直升机飞行HeliHell源码分析(2)-飞行控制">Unity直升机飞行HeliHell源码分析(2)-飞行控制</a></li>
		<li><a href="http://jingyan.idoubi.net/4647.html" rel="bookmark" title="详细阅读 Admob加载横幅广告或插屏广告返回错误：code=3 message=“No ad config“">Admob加载横幅广告或插屏广告返回错误：code=3 message=“No ad config“</a></li>
		<li><a href="http://jingyan.idoubi.net/4815.html" rel="bookmark" title="详细阅读 Unity灯光问题-真机测试时灯光不显示的问题2">Unity灯光问题-真机测试时灯光不显示的问题2</a></li>
		<li><a href="http://jingyan.idoubi.net/1755.html" rel="bookmark" title="详细阅读 Unity3d InverseTransformPoint方法">Unity3d InverseTransformPoint方法</a></li>
		<li><a href="http://jingyan.idoubi.net/4861.html" rel="bookmark" title="详细阅读 Unity中的SystemInfo.deviceUniqueIdentifier 唯一ID">Unity中的SystemInfo.deviceUniqueIdentifier 唯一ID</a></li>
		<li><a href="http://jingyan.idoubi.net/2239.html" rel="bookmark" title="详细阅读 利用Unity协程实现一个简单的怪物寻路与跟随AI">利用Unity协程实现一个简单的怪物寻路与跟随AI</a></li>
	</ul>
<div class="cls"></div>
</div>

<div id="comments">
	<div id="respond" class="comment-respond">
		<h3 id="reply-title" class="comment-reply-title">留下一个回复 <small><a rel="nofollow" id="cancel-comment-reply-link" href="http://jingyan.idoubi.net/1092.html#respond" style="display:none;">取消回复</a></small></h3><form action="http://jingyan.idoubi.net/wp-comments-post.php" method="post" id="commentform" class="comment-form"><p class="comment-notes">你的email不会被公开。</p><p class="comment-form-comment"><label for="comment">评论</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea></p><p class="comment-form-author"><label for="author">显示名称 <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" required="required"></p>
<p class="comment-form-email"><label for="email">电子邮箱地址 <span class="required">*</span></label> <input id="email" name="email" type="text" value="" size="30" maxlength="100" required="required"></p>
<p class="comment-form-url"><label for="url">网站地址</label> <input id="url" name="url" type="text" value="" size="30" maxlength="200"></p>
<p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="发表评论"> <input type="hidden" name="comment_post_ID" value="1092" id="comment_post_ID">
<input type="hidden" name="comment_parent" id="comment_parent" value="0">
</p><p style="display: none !important;"><label>Δ<textarea name="ak_hp_textarea" cols="45" rows="8" maxlength="100"></textarea></label><input type="hidden" id="ak_js" name="ak_js" value="1653729462914"><script>document.getElementById( "ak_js" ).setAttribute( "value", ( new Date() ).getTime() );</script></p></form>	</div><!-- #respond -->
	</div><!-- #comments -->
      </div><!-- #content -->
  </div><!-- #container -->
<script type="text/javascript">loading('55%',1000)</script>
    <aside id="primary" class="side" role="complementary">
        <ul class="xoxo">

    <li id="search" class="widget-container widget_search">
        <form role="search" method="get" id="searchform" class="searchform" action="http://jingyan.idoubi.net/">
				<div>
					<label class="screen-reader-text" for="s">搜索：</label>
					<input type="text" value="" name="s" id="s">
					<input type="submit" id="searchsubmit" value="搜索">
				</div>
			</form>    </li>
    <li id="ad01" class="widget-container">
	<script async="" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/f(9).txt"></script>
<!-- adsense_yun_right_300x600 -->
<ins class="adsbygoogle" style="display:inline-block;width:300px;height:600px" data-ad-client="ca-pub-2936974149975785" data-ad-slot="3781565206" data-adsbygoogle-status="done" data-ad-status="filled"><ins id="aswift_3_expand" tabindex="0" title="Advertisement" aria-label="Advertisement" style="border: none; height: 600px; width: 300px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: inline-table;"><ins id="aswift_3_anchor" style="border: none; height: 600px; width: 300px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: block;"><iframe id="aswift_3" name="aswift_3" style="left:0;position:absolute;top:0;border:0;width:300px;height:600px;" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="300" height="600" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/ads(2).html" data-google-container-id="a!4" data-google-query-id="CMyMoKnugfgCFeiC6QUdtgQM-Q" data-load-complete="true"></iframe></ins></ins></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
    </li>
	<li>
	<script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/alimama.js.下载"></script>
    </li>
	
    <li>
        <h3>加入【逗分享Unity3D源码研究】QQ群</h3>
        <label style="color: red; font-size: 18px">带你轻松的学习和工作</label><br>
        <a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=fbc5804b0933e1ee99d281b297237f9872a6c3c6cf9d3191b40f092e29d0bacd"><img border="0" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/group.png" alt="逗分享Unity3D源码研究" title="逗分享Unity3D源码研究"></a>【1群】703142513<br>
        <a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=959b72a1516907f1beeb39f8d02189eda21e74dcbd684fd6d33bf69d549b4d2a"><img border="0" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/group.png" alt="逗分享Unity3D源码研究2" title="逗分享Unity3D源码研究2"></a>【2群】977976316
    
	</li>
    <li id="archives" class="widget-container">
        <h3 class="widget-title">归档</h3>
        <ul>
            	<li><a href="http://jingyan.idoubi.net/date/2022/01">2022年1月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2021/12">2021年12月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2021/11">2021年11月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2021/10">2021年10月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2021/09">2021年9月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2021/08">2021年8月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2021/07">2021年7月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2021/06">2021年6月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/11">2020年11月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/10">2020年10月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/09">2020年9月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/08">2020年8月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/07">2020年7月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/06">2020年6月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/05">2020年5月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/04">2020年4月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/03">2020年3月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/02">2020年2月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2020/01">2020年1月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/12">2019年12月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/11">2019年11月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/10">2019年10月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/09">2019年9月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/08">2019年8月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/07">2019年7月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/06">2019年6月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/05">2019年5月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/04">2019年4月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/03">2019年3月</a></li>
	<li><a href="http://jingyan.idoubi.net/date/2019/02">2019年2月</a></li>
        </ul>
    </li>

    <li id="meta" class="widget-container">
        <h3 class="widget-title">杂项</h3>
        <ul>
                        <li><a href="http://jingyan.idoubi.net/wp-login.php">登录</a></li>
                    </ul>
    </li>
		        </ul>
    </aside><!-- #primary .widget-area -->

<script type="text/javascript">loading('78%',1000)</script>
<div class="cls"></div>
</section><!-- #main -->
<div class="cls"></div>
	<footer id="footer" role="contentinfo">
		<div id="colophon">

<div id="site-info">
<a href="javascript:void(0)" onclick="goRoll(0)" id="goTop">返回顶部</a>  &nbsp; <a href="http://www.miitbeian.gov.cn/" rel="external nofollow">浙ICP备16038148号</a> <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?dfa056fb7443970b825ea8432c228476";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?dfa056fb7443970b825ea8432c228476";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
 ©逗分享开发经验 | Theme <span id="official">frontopen2</span></div>
		</div>	</footer></div><ins class="adsbygoogle adsbygoogle-noablate" data-adsbygoogle-status="done" style="display: none !important;" data-ad-status="unfilled"><ins id="aswift_0_expand" tabindex="0" title="Advertisement" aria-label="Advertisement" style="border: none; height: 0px; width: 0px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: inline-table;"><ins id="aswift_0_anchor" style="border: none; height: 0px; width: 0px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: block;"><iframe id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;border:0;width:undefinedpx;height:undefinedpx;" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/ads(3).html" data-google-container-id="a!1" data-load-complete="true"></iframe></ins></ins></ins><script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/comment-reply.min.js.下载" id="comment-reply-js"></script>
<script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/enlighterjs.min.js.下载" id="enlighterjs-js"></script><ins class="adsbygoogle adsbygoogle-noablate" data-adsbygoogle-status="done" data-anchor-status="displayed" style="display: block; width: 100% !important; height: 95px !important; bottom: 0px; clear: none !important; float: none !important; left: 0px; margin: 0px !important; max-height: none !important; max-width: none !important; opacity: 1; overflow: visible !important; padding: 0px !important; position: fixed; right: auto !important; top: auto !important; vertical-align: baseline !important; visibility: visible !important; z-index: 2147483647; background: rgb(250, 250, 250) !important;" data-ad-status="filled" data-anchor-shown="true"><ins class="ee" style="inset: auto !important; clear: none !important; display: block !important; float: none !important; height: 5px !important; margin: 0px !important; max-height: none !important; max-width: none !important; opacity: 1 !important; overflow: visible !important; padding: 0px !important; position: relative !important; vertical-align: baseline !important; visibility: visible !important; width: auto !important; z-index: 1 !important; background-color: rgb(250, 250, 250) !important; box-shadow: rgba(0, 0, 0, 0.2) 0px -1px 5px -1px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px !important;"><span style="display: block !important; width: 80px !important; height: 45px !important; bottom: 0px !important; left: 0% !important; pointer-events: none !important;"><svg style="margin: 0px !important; position: absolute !important; bottom: 0px !important; left: 0% !important; display: block !important; width: 80px !important; height: 30px !important; transform: none !important; pointer-events: initial !important;"><defs><filter id="dropShadowTop" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><fecomponenttransfer in="SourceAlpha" result="TransferredAlpha"><fefuncr type="discrete" tableValues="0.5"></fefuncr><fefuncg type="discrete" tableValues="0.5"></fefuncg><fefuncb type="discrete" tableValues="0.5"></fefuncb></fecomponenttransfer><fegaussianblur in="TransferredAlpha" stdDeviation="2"></fegaussianblur><feoffset dx="0" dy="0" result="offsetblur"></feoffset><femerge><femergenode></femergenode><femergenode in="SourceGraphic"></femergenode></femerge></filter></defs><path d="M0,26 L0,6 A6,6 0 0,1 6,1 L50,1 A6,6 0 0,1 56,6 L56,20 A6,6 0 0,0 62,26 Z" stroke="#FAFAFA" stroke-width="1" fill="#FAFAFA" style="filter: url(&quot;#dropShadowTop&quot;);"></path><rect x="0" y="25" width="80" height="5" style="fill: rgb(250, 250, 250);"></rect><g class="down" stroke="#616161" stroke-width="2px" stroke-linecap="square"><line x1="22" y1="12" x2="28" y2="18"></line><line x1="28" y1="18" x2="34" y2="12"></line></g></svg></span></ins><ins id="aswift_5_expand" tabindex="0" title="Advertisement" aria-label="Advertisement" style="border: none !important; height: 90px !important; width: 100% !important; margin: 0px !important; padding: 0px !important; position: relative !important; visibility: visible !important; background-color: transparent !important; display: inline-table !important; inset: auto !important; clear: none !important; float: none !important; max-height: none !important; max-width: none !important; opacity: 1 !important; overflow: visible !important; vertical-align: baseline !important; z-index: auto !important;"><ins id="aswift_5_anchor" style="border: none !important; height: 90px !important; width: 100% !important; margin: 0px !important; padding: 0px !important; position: relative !important; visibility: visible !important; background-color: transparent !important; display: block !important; inset: auto !important; clear: none !important; float: none !important; max-height: none !important; max-width: none !important; opacity: 1 !important; overflow: visible !important; vertical-align: baseline !important; z-index: auto !important;"><iframe id="aswift_5" name="aswift_5" style="width: 728px !important; height: 90px !important; display: block; margin: 0px auto;" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="728" height="90" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/zrt_lookup(1).html" data-google-container-id="a!6" data-google-query-id="CJHPn6nugfgCFQE8vQodRdcFkw" data-load-complete="true"></iframe></ins></ins></ins>
<script type="text/javascript" id="enlighterjs-js-after">
!function(e,n){if("undefined"!=typeof EnlighterJS){var o={"selectors":{"block":"pre.EnlighterJSRAW","inline":"code.EnlighterJSRAW"},"options":{"indent":4,"ampersandCleanup":true,"linehover":true,"rawcodeDbclick":false,"textOverflow":"break","linenumbers":true,"theme":"enlighter","language":"generic","retainCssClasses":false,"collapse":false,"toolbarOuter":"","toolbarTop":"{BTN_RAW}{BTN_COPY}{BTN_WINDOW}{BTN_WEBSITE}","toolbarBottom":""}};(e.EnlighterJSINIT=function(){EnlighterJS.init(o.selectors.block,o.selectors.inline,o.options)})()}else{(n&&(n.error||n.log)||function(){})("Error: EnlighterJS resources not loaded yet!")}}(window,console);
</script>
<script type="text/javascript" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/wp-embed.min.js.下载" id="wp-embed-js"></script>
<div id="float" style="bottom: 50px;"><a id="float_gotop" class="floatbtn" href="javascript:void()" onclick="goRoll(0)" title="返回顶部"></a><a class="linbak floatbtn" href="http://jingyan.idoubi.net/wp-admin/" title="登陆&amp;注册"></a><a id="float_goend" class="floatbtn" href="javascript:void()" onclick="goend()" title="转到底部"></a></div>

<script type="text/javascript">loading('100%',1000)</script>

<!-- Dynamic page generated in 1.594 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2022-01-12 07:30:26 -->

<!-- super cache --><div id="lightboxOverlay" class="lightboxOverlay" style="display: none;"></div><div id="lightbox" class="lightbox" style="display: none;"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="http://jingyan.idoubi.net/1092.html"><div class="lb-nav"><a class="lb-prev" href="http://jingyan.idoubi.net/1092.html"></a><a class="lb-next" href="http://jingyan.idoubi.net/1092.html"></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div><iframe src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/aframe.html" width="0" height="0" style="display: none;"></iframe></body><ins class="adsbygoogle adsbygoogle-noablate" data-adsbygoogle-status="done" style="display: none !important; width: 100vw !important; height: 100vh !important; inset: 0px auto auto 0px !important; clear: none !important; float: none !important; margin: 0px !important; max-height: none !important; max-width: none !important; opacity: 1 !important; overflow: visible !important; padding: 0px !important; position: fixed !important; vertical-align: baseline !important; visibility: visible !important; z-index: 2147483647 !important; background: transparent !important;" aria-hidden="true" data-ad-status="filled" data-vignette-loaded="true"><ins id="aswift_4_expand" tabindex="0" title="Advertisement" aria-label="Advertisement" style="border: none !important; height: 100vh !important; width: 100vw !important; margin: 0px !important; padding: 0px !important; position: relative !important; visibility: visible !important; background-color: transparent !important; display: inline-table !important; inset: auto !important; clear: none !important; float: none !important; max-height: none !important; max-width: none !important; opacity: 1 !important; overflow: visible !important; vertical-align: baseline !important; z-index: auto !important;"><ins id="aswift_4_anchor" style="border: none !important; height: 100vh !important; width: 100vw !important; margin: 0px !important; padding: 0px !important; position: relative !important; visibility: visible !important; background-color: transparent !important; display: block !important; inset: auto !important; clear: none !important; float: none !important; max-height: none !important; max-width: none !important; opacity: 1 !important; overflow: visible !important; vertical-align: baseline !important; z-index: auto !important;"><iframe id="aswift_4" name="aswift_4" style="width: 100vw !important; height: 100vh !important; inset: 0px auto auto 0px !important; position: absolute !important; clear: none !important; display: inline !important; float: none !important; margin: 0px !important; max-height: none !important; max-width: none !important; opacity: 1 !important; overflow: visible !important; padding: 0px !important; vertical-align: baseline !important; visibility: visible !important; z-index: auto !important;" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="" height="" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="./Unity3D 中Start()和Awake()方法有什么区别 _ 逗分享开发经验_files/zrt_lookup(2).html" data-google-container-id="a!5" data-google-query-id="CJDPn6nugfgCFQE8vQodRdcFkw" data-load-complete="true"></iframe></ins></ins></ins></html>